<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    首页<br>
    姓名：<span th:text="${name}"></span><br>
    年龄：<span th:text="${age}"></span>
     <span th:if="${age >= 18}">已成年</span>
      <span th:if="${age < 18}">未成年</span>
    <hr>
    编号：<span th:text="${user.id}"></span><br>
    用户名：<span th:text="${user.name}"></span><br>
    生日：<span th:text="${user.birthday}"></span><br>
    学历：<span th:text="${user.edu}"></span>
    <hr>
    <table border="1" width="50%" cellspacing="0">
        <thead><tr><th>编号</th><th>姓名</th><th>生日</th></tr></thead>
        <tbody>
            <tr th:each="ub : ${list} ">
                <td th:text="${ub.id}"></td>
                <td th:text="${ub.name}"></td>
                <td th:text="${ub.birthday}"></td>
            </tr>
        </tbody>
    </table>

</body>
</html>